package ioperation;

import book.Book;
import book.BookList;

public class ShowbookList implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书");
        int current = bookList.getUseSize();
        for ( int i = 0; i < current; i++){

            Book book = bookList.getBooks(i);

            System.out.println(book);

        }
    }
}
